home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickTime™ VR 2.0 SDK / QTVR C⁄C++ Runtime API / Sample Code / VRShell Sample Code / VR3DSound / Application Files / MacApplication.h < prev    next >
Encoding:
Text File  |  1997-05-22  |  1.4 KB  |  62 lines  |  [TEXT/MPCC]

  1. //
  2. //    File:        MacApplication.h
  3. //
  4. //    Contains:    Functions that could be overridden in a specific application.
  5. //
  6. //    Written by:    Tim Monroe
  7. //                Based (heavily!) on the MovieShell code written by Apple DTS
  8. //
  9. //    Copyright:    © 1994-1996 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <2>         11/27/96    rtm        conversion to personal coding style
  14. //       <1>         12/21/94    khs        first file
  15. //       
  16. //
  17.  
  18. #pragma once
  19.  
  20. #include "Sound.h"
  21. #include "SoundComponents.h"
  22. #include "SoundSprocket.h"
  23.  
  24. // application-specific constants
  25. #define kMaxNumSourcesPerNode    2
  26.  
  27. // for menus
  28.  
  29. enum eAppMenus {
  30.     mTesting = 131
  31. };
  32.  
  33. enum eTestingMenu {
  34.     iTest1 = 1,
  35.     iTest2,
  36.     iTest3,
  37.     iTest4,
  38.     iTest5,
  39.     iTest6,
  40.     iTest7,
  41.     iTest8,
  42.     iTest9,
  43.     iTest10
  44. };
  45.  
  46. //////////
  47. // structures
  48. //////////
  49.  
  50. // application-specific window data
  51.  
  52. typedef struct {
  53.     SSpListenerReference    fListener;                            // the single listener
  54.     SSpSourceReference        fSources[kMaxNumSourcesPerNode];    // a node's sound sources
  55.     SndChannelPtr            fChannels[kMaxNumSourcesPerNode];    // a sound channel for each sound source
  56.     SndListHandle            fResources[kMaxNumSourcesPerNode];    // the 'snd ' resources for the sounds
  57.     Boolean                    fMustUpdateOrient;                    // do we need to update the listener's orientation?
  58. } ApplicationDataRecord, *ApplicationDataPtr, **ApplicationDataHdl;
  59.  
  60. // the function prototypes are in the file MacFramework.h
  61.  
  62.